<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
	<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
	 <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<h1 style="width:200px;margin:0px auto;font-size:20pt;font-weight:bold;">文档下载</h1>
<table class="table table-bordered table-hover  table-striped" style="width:90%;margin:0px auto;margin-top:10px;">
		<thead>
		<tr>
		<th>题目编号</th>
		<th>题目名称</th>
		<th>学生学号</th>
		<th>学生姓名</th>
		<th>评阅教师</th>
		<th>操作</th>
		</tr>
		</thead>
		<tbody>
		<c:forEach items="${projects }" var="proj" >
				<tr>
				<td>${proj.id }</td>
				<td>${proj.name }</td>
				<td>${proj.student.no }</td>
				<td>${proj.student.name }</td>
				<td>${proj.shengyue_teacher.name }</td>
				<td>
				<c:if test="${user.enableMiddleCheck==true }">
					<c:if test="${proj.commitmentsPath!=null }">
					<a href="${proj.commitmentsPath }" class="btn btn-info">论文下载</a>
					</c:if>
					<c:if test="${proj.commitmentsPath==null }">
					该学生尚未上传文档
					</c:if>
				</c:if>
				
				<c:if test="${user.enableFinalCheck == true }">
						<c:if test="${proj.essayPath!=null }">
							<a href="${proj.essayPath }" class="btn btn-info">论文下载</a>
						</c:if>
						<c:if test="${proj.essayPath==null }">
							该学生尚未上传文档
						</c:if>
				</c:if>
				<c:if test="${user.afterFinalCheck==true }">
					<a href="javascript:void(0);" class="score btn btn-success" name="${proj.id }">成绩录入</a>
				</c:if>
				<c:if test="${user.afterFinalCheck==false }">
					<a href="javascript:void(0);" class="score btn btn-warning" name="${proj.id }"  onclick="return false;">成绩录入</a>
				</c:if>
				</td>
				</tr>
				
		</c:forEach>
		</tbody>
</table>